package pers.cj.pdos.service;

import org.apache.ibatis.annotations.Param;
import pers.cj.pdos.entity.SettAccount;
import com.baomidou.mybatisplus.extension.service.IService;
import pers.cj.pdos.vo.SettAccountVo;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chenj
 * @since 2019-11-04
 */
public interface ISettAccountService extends IService<SettAccount> {
    List<SettAccountVo> listVo(String companyId, String storeId);

    List<SettAccountVo> listVoPage(Integer page, Integer limit,String companyId, String search, String storeId);
    long count(String companyId, String search, String storeId);


    List<SettAccountVo> listVoForInit(Integer page, Integer limit,String companyId, String search);
    long countForInit(String companyId, String search);

    boolean checkName(String name, String companyId);

    SettAccountVo getVoById(String id);

    void insert(SettAccount settAccount);

    void remove(SettAccount settAccount);

    void update(SettAccount settAccount);

    List<SettAccount> getByStore(String storeId, String companyId);

    BigDecimal getTotalBalance(String companyId);
}
